//
//  HistoryAccess.h
//  ZingBrowser
//
//  Created by -Xh- on 3/1/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import "BaseAccess.h"
#import "HistoryModel.h"
#import "MyUtilities.h"
@interface HistoryAccess : BaseAccess

-(NSMutableArray*)getAllRecordsOrderByDate;
-(NSMutableArray*)getAllRecordsOnSpecificDate:(NSDate*)_date;
-(NSMutableArray*)getAllRecordsBetweenDate:(NSDate*)_dateBegin andDate:(NSDate*)_dateEnd;
-(NSMutableArray*)getAllRecordsExceptSpeedDial;

- (void)insertWith:(NSString*)_title AndURL:(NSString*)_url;
-(BaseModel *)findByURL:(NSString *)_url;
-(int)getLastIDNumber;
-(BOOL)deleteObjectAtID:(NSString *)_id;
-(NSMutableArray*)getRecordsBySearchTerm:(NSString*)searchTerm;
@end
